<?php
use yii\helpers\Url;
use app_supplier\assets\SuppAssets;
SuppAssets::addCss($this, '@web/css/button.css');
SuppAssets::addScript($this,'@web/js/jquery/ui/i18n/ui.datepicker-zh-CN.js');
?>
<script>
    $(function () {
        $('.date').datepicker({
            onSelect: function(dateText) {
            }
        });
    })

</script>


<div class="box">
    <div class="heading">
        <h1><img src="<?=Url::to('@web/images/')?>category.png" alt="">  出入库查询</h1>
        <div class="buttons">

        </div>
    </div>
    <form action="" method="post" enctype="multipart/form-data" id="form">
        <div class="inventory-query">
            <table>
                <tbody>
                <tr style="height:40px;">
                    <td style="text-align:right;"><b>日期：</b></td>
                    <td>
                        <label><input type="radio" name="filter_stat_type" value="cur_day" onchange="javascript:stat(this.value);" style="margin-left:10px;">今日</label>
                        <label><input type="radio" name="filter_stat_type" value="cur_month" onchange="javascript:stat(this.value);" style="margin-left:10px;" checked="checked">本月</label>
                        <label><input type="radio" name="filter_stat_type" value="during" onchange="javascript:stat(this.value);" style="margin-left:10px;">期间</label>
                        <input id="filter_stat_start" type="text" value="2017-03-01" size="12" class="date hasDatepicker">&nbsp;&nbsp;至
                        <input id="filter_stat_end" type="text" value="2017-03-01" size="12" class="date hasDatepicker">&nbsp;&nbsp;
                    </td>
                </tr>
                <tr style="height:40px;">
                    <td style="text-align:right;"><b>材料：</b></td>
                    <td>
                        <select name="filter_name" onchange="javascript:loadBrand(this.value);" style="margin-left:10px; width:120px;">
                            <option value="0">类别</option>
                            <option value="wash">洗车</option>
                            <option value="1">燃油滤清器</option>
                            <option value="2">机油滤清器</option>
                            <option value="3">空气滤清器</option>
                            <option value="4">空调滤清器</option>
                            <option value="5">机油</option>
                            <option value="8">防冻液</option>
                            <option value="9">火花塞</option>
                            <option value="10">前刹车片</option>
                            <option value="11">后刹车片</option>
                            <option value="15">刹车油</option>
                            <option value="17">蓄电池</option>
                            <option value="20">雨刮片</option>
                            <option value="22">喇叭</option>
                            <option value="25">添加剂</option>
                            <option value="26">前灯灯泡</option>
                            <option value="29">空调制冷剂</option>
                            <option value="71">轮胎及附件</option>
                            <option value="72">前刹车盘</option>
                            <option value="73">后刹车盘</option>
                            <option value="74">精品百货</option>
                            <option value="106">维修配件</option>
                            <option value="125">清洗剂</option>
                            <option value="171">护理剂</option>
                            <option value="173">护具</option>
                            <option value="176">车蜡</option>
                            <option value="178">耗材</option>
                            <option value="181">钣金喷漆项目</option>
                            <option value="183">变速箱滤芯</option>
                        </select>
                        <select id="filter_brand" style="margin-left:30px; width:120px;">
                            <option value="0">品牌</option>
                        </select>
                        <span style="font-weight:bold; margin-left:50px;">型号模糊查询：</span>
                        <input type="text" id="filter_type" value="" style="width:250px;">&nbsp;
                    </td>
                </tr>
                <tr style="height:40px;">
                    <td style="text-align:right;"><b>&nbsp;&nbsp;&nbsp;&nbsp;操作人员：</b></td>
                    <td>
                        <select id="jobs" name="jobs" style="float:left;margin-left:10px;width:120px;margin-right:20px;" onchange="javascript:getWorkers(this)">
                            <option value="all">所有人</option>
                            <option value="仓管">仓管</option>
                            <option value="前台">前台</option>
                            <option value="店长">店长</option>
                            <option value="技师">技师</option>
                            <option value="救援">救援</option>
                            <option value="洗车">洗车</option>
                            <option value="维修">维修</option>
                            <option value="美容">美容</option>
                            <option value="财务">财务</option>
                            <option value="配置管理员">配置管理员</option>
                            <option value="销售">销售</option>
                        </select>

                        <ul id="workers" style="font-size:14px; font-weight:100; display:inline;">
                            <li id="洗车" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="王伟奇">王伟奇					</li>
                            <li id="美容" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="李想">李想					</li>
                            <li id="维修" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="张峰">张峰					</li>
                            <li id="技师" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="王斌">王斌					</li>
                            <li id="洗车" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="王武">王武					</li>
                            <li id="销售" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="林冲">林冲					</li>
                            <li id="技师" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="施卫康">施卫康					</li>
                            <li id="仓管" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="仇彬彬">仇彬彬					</li>
                            <li id="技师" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="仝乐">仝乐					</li>
                            <li id="洗车" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="李四">李四					</li>
                            <li id="技师" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="胡云龙">胡云龙					</li>
                            <li id="前台" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="范欢欢">范欢欢					</li>
                            <li id="技师" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="梁朝辉">梁朝辉					</li>
                            <li id="技师" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="张如意">张如意					</li>
                            <li id="技师" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="吴林晨">吴林晨					</li>
                            <li id="救援" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="王二麻子">王二麻子					</li>
                            <li id="配置管理员" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="郑才贵">郑才贵					</li>
                            <li id="店长" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="韩雨晴">韩雨晴					</li>
                            <li id="财务" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="周晓燕">周晓燕					</li>
                            <li id="仓管" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="孟艳丽">孟艳丽					</li>
                            <li id="店长" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="小季">小季					</li>
                            <li id="仓管" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="小小">小小					</li>
                            <li id="仓管" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="大大">大大					</li>
                            <li id="洗车" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="杨立强">杨立强					</li>
                            <li id="洗车" style="list-style-type: none; float: left; margin: 5px 30px 10px 10px; display: none;">
                                <input type="radio" name="filter_operator" value="杨家将">杨家将					</li>
                        </ul>
                    </td>
                </tr>
                <tr style="height:40px;">
                    <td style="text-align:right;"><b>&nbsp;&nbsp;&nbsp;&nbsp;供应商/调拨店：</b></td>
                    <td>&nbsp;
                        <select id="filter_dealer_id" name="filter_dealer_id" style="width: 120px">
                            <option value="0">请选择供应商/调拨店</option>
                            <option value="14,1">车保无忧试用</option>
                            <option value="13,1">大拇指</option>
                            <option value="12,1">测试供应商2</option>
                            <option value="11,1">测试供应商1</option>
                        </select>
                    </td>
                </tr>
                <tr style="height:40px;">
                    <td style="text-align:right;"><b>&nbsp;&nbsp;&nbsp;&nbsp;出入类型：</b></td>
                    <td>
                        <input type="checkbox" name="query_type" id="query_type2" value="2" style="margin-left:10px;" checked="checked">出库
                        <input type="checkbox" name="query_type" id="query_type1" value="1" style="margin-left:20px;" checked="checked">入库
                        <a onclick="javascript:filter();" class="button" style="margin-left:200px; width:60px;"><span>查 询</span></a>

                        <a onclick="javascript:export_query();" class="button" style="margin-left:50px; width:60px;"><span>导 出</span></a>
                    </td>
                </tr>
                </tbody></table>
        </div>
        <div class="content">
            <table class="list">
                <thead>
                <tr>
                    <td class="center">                <a href="/store/demo/inventory/inventory_query?sort=date&amp;filter_stat_type=cur_month&amp;store_id=28&amp;order=ASC" class="desc">日期</a>
                    </td>
                    <td class="center">单据类型</td>
                    <td class="center">供应商/调拨店</td>
                    <td class="center">材料类别</td>
                    <td class="center">                <a href="/store/demo/inventory/inventory_query?sort=type&amp;filter_stat_type=cur_month&amp;store_id=28&amp;order=ASC">材料型号</a>
                    </td>
                    <td class="center">                <a href="/store/demo/inventory/inventory_query?sort=brand&amp;filter_stat_type=cur_month&amp;store_id=28&amp;order=ASC">材料品牌</a>
                    </td>
                    <td class="center">价 格</td>
                    <td class="center">单 位</td>
                    <td class="center">数 量</td>
                    <td class="center">单据号</td>
                    <td class="center">操作人员</td>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td class="center">合计</td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td class="right"><b>￥</b>0</td>
                    <td></td>
                    <td class="center"></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td class="center" colspan="11">未查询到数据！</td>
                </tr>
                </tbody>
            </table>
            <div class="pagination"><div class="results">显示 0 - 0 之 0 (共计 0 页)</div></div>
        </div>
    </form>
</div>


